package com.wl4837;

public class App {

    public static void main(String[] args) {
        GUIFactory factory;
        String osName = System.getProperty("os.name").toLowerCase();

        if (osName.contains("win")) {
            factory = new WindowsFactory();
        } else {
            factory = new MacOSFactory();
        }

        factory.createButton().render();
        factory.createCheckbox().render();
    }

}
